# -*- coding: utf-8 -*-
# @Time    : 2020/10/18 16:01
# @Author  : liupengfei
# @File    : urls.py
from django.urls import path, include
from rest_framework.routers import SimpleRouter
from .views import *

urlpatterns = [
    path('list/', ActivityListViewSet.as_view()),
    path('mine_create/list/', MineCreateActivityListViewSet.as_view()),
    path('<int:pk>/detail/', ActivityDetailViewSet.as_view()),
    path('mine/apply/', MineApplyActivityView.as_view()),  # 我的参与的活动
    path('vote/', include('apps.member.activity.vote.urls')),
    path('<int:activity_id>/bargain/', include('apps.member.activity.bargain.urls')),
]
router = SimpleRouter()
router.register('', ActivityViewSet)
urlpatterns += router.urls
